<?php

/**
 * BaseModel
 * Provides some overrides for the default \Phalcon\Mvc\Model class.
 *
 * @author Gigi Pastore (gigi@la-fabbrica.org)
 */

namespace Registro\Models;

class BaseModel extends \Phalcon\Mvc\Model {

    use \Registro\Models\Helpers\CreatedUpdatedAt;

    /**
     * Returns the table_prefix . table_name string
     * @return string
     */
    public function getSource()
    {
        return TABLE_PREFIX . parent::getSource();
        //return TABLE_PREFIX . strtolower( ( new \ReflectionClass( $this ) )->getShortName() );
    }

}
